<?php

namespace Modules\DataAnalysis\Entities;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class CommentPhrase extends Model
{
    use HasFactory;

    /**
     * 不可以批量赋值的属性
     *
     * @var array
     */
    protected $guarded = [];

    /**
     * 指示模型是否主动维护时间戳。
     *
     * @var bool
     */
    public $timestamps = false;

    /**
     * 说明：反向关联的视频
     *
     * @return
     * @param   type
     * @author  daixinguo (daixinguo57@163.com)
     */
    public function video()
    {
        return $this->belongsTo(Video::class, 'video_id', 'id');
    }
}
